package com.adapter.classadapter;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/4/15 8:39
 */
// 适配器类
public class VoltageAdapter extends Voltage220V implements IVoltage5V{
    @Override
    public int output5V() {
        // 获取到220V电压
        int srcV = output220V();
        int dstV = srcV / 44;
        
        return dstV;
    }
}
